x86_emulate: Emulate CLFLUSH instruction
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 15 Apr 2010 17:47:58 +0000 (18:47 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 15 Apr 2010 17:47:58 +0000 (18:47 +0100)
commit91b1583fbc2360b873c2ecd961202852671b380d
tree4e1a31a8009d652b7fbf0414d47a84cc9c5b89d2
parent757907af26fda8df608b58cbb3fede8eb03434c0
x86_emulate: Emulate CLFLUSH instruction

We recently found that FreeBSD 8.0 guest failed to install and boot on
Xen. The reason was that FreeBSD detected clflush feature and invoked
this instruction to flush MMIO space. This caused a page fault; but
x86_emulate.c failed to emulate this instruction (not supported). As a
result, a page fault was detected inside FreeBSD. A similar issue was
reported earlier.

http://lists.xensource.com/archives/html/xen-devel/2010-03/msg00362.html

From: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c